CC=g++
CFLAGS=-Wall
VPATH=src
INCLUDES=-I$(VPATH) -I/usr/include/OGRE -I/usr/include/OIS
LDFLAGS=-lOgreMain -lOIS
EXEC=a.out
OBJS=main.o OgreApp.o EventListener.o WestCoast.o 

all: $(EXEC)

$(EXEC) : $(OBJS)
	@echo "**** $(EXEC) ****"
	@$(CC) $(CFLAGS) $(INCLUDES) $(OBJS) $(LDFLAGS)

%.o : %.cpp %.hpp
	@echo "**** $@ ****"
	@$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

%.o : %.cpp
	@echo "**** $@ ****"
	@$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

clean::
	@rm -rf *.o
	@echo "**** clean ****"
